package com.guoguo.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.guoguo.entity.TaskInfo;
import com.guoguo.entity.vo.TaskInfoDayVO;
import com.guoguo.entity.vo.TaskInfoVO;

/**
 * 任务接口
 * @author Qiang.Zhang
 */
public interface TaskInfoMapper {

    List<TaskInfo> selectList(@Param("giftType")Integer giftType,@Param("requireType")Integer requireType);

	/**
	 * @param giftType
	 * @return
	 */
	List<TaskInfoVO> selectAllList(@Param("giftType")Integer giftType);

	/**
	 * @param 
	 * @return
	 */
	List<TaskInfoDayVO> selectDayList(@Param("giftType")Integer giftType);
    
	/**
	 * 查询领取的奖励
	 * @param giftType
	 * @param weekTaskCount
	 * @return
	 */
	TaskInfo selectReward(@Param("giftType")Integer giftType, @Param("requireType")Integer requireType);
    
	/**
	 * 查询礼包所有的类型
	 * @return
	 */
	List<Integer> selectAllGiftType();
    
	/**
	 * 查询当前礼包类型下所有的礼包任务
	 * @return
	 */
	List<Integer> selectGiftAllRequireType(@Param("giftType")Integer giftType);

    
    
}
